package com.itheima_8;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Demo {
    public static void main(String[] args) throws IOException {
        ServerSocket ss=new ServerSocket(10012);
        while (true){
            Socket accept = ss.accept();
            ServerDemo sd=new ServerDemo(accept);
            new Thread(sd).start();
        }
    }
}
